//
//  BMHSettingExitCell.m
//  BMHVideoMain
//
//  Created by 陈宪栋 on 2017/3/23.
//  Copyright © 2017年 Baomihua. All rights reserved.
//

#import "BMHSettingExitCell.h"
#import <Masonry.h>

@implementation BMHSettingExitCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = [UIFont systemFontOfSize:16];
        _titleLabel.textColor = [UIColor redColor];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    CGSize size = [self.titleLabel sizeThatFits:self.contentView.frame.size];
    [self.titleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
        make.size.mas_equalTo(size);
    }];
}

@end
